// import com.alibaba.druid.sql.ast.SQLName;
// import com.alibaba.druid.sql.ast.SQLObject;
// import com.alibaba.druid.sql.dialect.mysql.visitor.MySqlASTVisitor;

// import java.util.Collections;
// import java.util.List;

#include "MysqlDeallocatePrepareStatement.h"
#include "../../../../ast/SQLName.h"
#include "../../../../ast/SQLObject.h"
#include "../../visitor/MySqlASTVisitor.h"

SQLName_ptr MysqlDeallocatePrepareStatement::getStatementName()
{
  return statementName;
}

void MysqlDeallocatePrepareStatement::setStatementName(SQLName_ptr statementName)
{
  this->statementName = statementName;
}

void MysqlDeallocatePrepareStatement::accept0(MySqlASTVisitor_ptr visitor)
{
  if (visitor->visit(SharedObject(MysqlDeallocatePrepareStatement)))
  {
    acceptChild(visitor, statementName);
  }
  visitor->endVisit(SharedObject(MysqlDeallocatePrepareStatement));
}

// @Override
SQLObject_list_ptr MysqlDeallocatePrepareStatement::getChildren()
{
  SQLObject_list_ptr tmp = std::make_shared<std::list<SQLObject_ptr>>();
  tmp->push_back(statementName);
  return tmp;
}
